package com.fortune.dto.in.distributorOrder;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import com.fortune.constants.enums.Payed;

import io.swagger.annotations.ApiModelProperty;

public class DistributorOrderAddDto {
	@NotBlank(message="经销商id不能为空")
	@ApiModelProperty(example="经销商id")
	private String distributorId;
	@NotBlank(message="订单编号不能为空")
	@ApiModelProperty(example="订单编号")
	private String no;
	@NotNull(message="是否已付款不能为空")
	@ApiModelProperty(example="是否已付款")
	private Payed payed;
	@ApiModelProperty(example="付款日期")
	private Date payTime;
	@ApiModelProperty(example="订单日期")
	private Date createTime;
	@ApiModelProperty(example="付款方式id")
	private String payTypeId;
	@ApiModelProperty(example="付款流水号")
	private String serialNumber;
	@NotEmpty(message="商品列表不能为空")
	private List<DistributorOrderDetailAddDto> details;

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getDistributorId() {
		return distributorId;
	}
	public void setDistributorId(String distributorId) {
		this.distributorId = distributorId;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public Payed getPayed() {
		return payed;
	}
	public void setPayed(Payed payed) {
		this.payed = payed;
	}
	public Date getPayTime() {
		return payTime;
	}
	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}
	public String getPayTypeId() {
		return payTypeId;
	}
	public void setPayTypeId(String payTypeId) {
		this.payTypeId = payTypeId;
	}
	public String getSerialNumber() {
		return serialNumber;
	}
	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}
	public List<DistributorOrderDetailAddDto> getDetails() {
		return details;
	}
	public void setDetails(List<DistributorOrderDetailAddDto> details) {
		this.details = details;
	}
	@Override
	public String toString() {
		return "DistributorOrderAddDto [distributorId=" + distributorId + ", no=" + no + ", payed=" + payed
				+ ", payTime=" + payTime + ", payTypeId=" + payTypeId + ", serialNumber=" + serialNumber + ", details="
				+ details + "]";
	}
}
